package com.example.ioc;

import com.example.ioc.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p> temp 控制器 </p>
 *
 * @author Chris
 * @since 2022/9/27 9:06
 */
@RestController
public class TestController {

	@Autowired
	private TestService testService;

	@RequestMapping("/test")
	public String test(String name) {
		System.out.println("Spring 源码加载完成...：" + name);

		testService.test();

		return "Spring 源码加载完成...：" + name;
	}

}